#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    void rotate_1(vector<vector<int>> &matrix)
    {
        int n = matrix.size();
        auto matrix_new = matrix;
        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < n; ++j) {
                // 翻转后,原矩阵中的元素 matrix[row][col] 在新元素中的位置是 new[col][n-row-1]
                matrix[j][n - i - 1] = matrix[i][j];
            }
        }
        matrix = matrix_new;
    }

    void rotate_2(vector<vector<int>> &matrix)
    {

    }
};

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}
